package com.shycloud.mido.organ.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.shycloud.mido.common.core.util.R;
import com.shycloud.mido.organ.api.dto.OrganizationDTO;
import com.shycloud.mido.organ.api.dto.VipDTO;
import com.shycloud.mido.organ.api.entity.OptOperator;
import com.shycloud.mido.organ.api.entity.OrgOrderEntity;
import com.shycloud.mido.organ.api.entity.Organization;
import com.shycloud.mido.organ.api.entity.VipActivatedEntity;
import com.shycloud.mido.organ.api.vo.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;
import java.util.Map;

/**
 * @author danZ
 * @date 2019/6/3
 */
public interface OrganizationService extends IService<Organization> {

	/**
	 * 只获取机构列表
	 *
	 * @param page 分页对象
	 * @return OrganizationDTO
	 */
	IPage<OrganizationDTO> getOrgPage(IPage<OrganizationDTO> page, OrganizationDTO org);

	/**
	 * 只获取工作室列表
	 *
	 * @param page 分页对象
	 * @return OrganizationDTO
	 */
	IPage<OrganizationDTO> getStudioPage(IPage<OrganizationDTO> page, OrganizationDTO org);

	/**
	 * 修改机构欢迎语
	 *
	 * @param orgId
	 * @param welcomeWord
	 * @return java.lang.Boolean
	 * @author nianhua.jiang
	 * @date 2020/8/7 14:21
	 */
	Boolean updateOrgName(Integer orgId, String welcomeWord);

	boolean updateOrg(OrganizationVO org);

    Boolean updPreStorageCount(Integer orgId, Integer preStorageCount);
    
    Boolean checkAndUpdPreStorageCount(Integer orgId, Integer preStorageCount);
}
